# s = 'crazyit.org is a good site'
# # 使用空白对字符串进行分割
# print(s.split()) # 输出 ['crazyit.org', 'is', 'a', 'good', 'site']
# # 使用空白对字符串进行分割,最多只分割前2个单词
# print(s.split(None, 1)) # 输出 ['crazyit.org', 'is', 'a good site']
# # 使用点进行分割
# print(s.split('.')) # 输出 ['crazyit', 'org is a good site']
# mylist = s.split()
# # 使用'/'为分割符，将mylist连接成字符串
# print('/'.join(mylist)) # 输出 crazyit.org/is/a/good/site
# # 使用','为分割符，将mylist连接成字符串
# print(','.join(mylist)) # 输出 crazyit.org,is,a,good,site

str = "abcdef"
print(str[0:-1])
str = "abcdef"
print(str[None::2])
print(str[2:5])
